import axios from '@/request/index'

export function login(data) {
  return axios({
    method:"post",
    url:"/login",    //后端数据接口路径
    data:data
  })
}
export function user(data) {
  return axios({
    method:"post",
    url:"/user",    //后端数据接口路径
    data:data
  })
}

export function userupdate(data) {
  return axios({
    method:"post",
    url:"/editInfo",
    data:data
  })
 }

export function selectInfo(data) {
  return axios({
    method:"post",
    url:"/selectInfo",
    data:data
  })
}

export function insertInfo(data) {
  return axios({
    method:"post",
    url:"/insertInfo",
    data:data
  })
}

export function deleteInfo(data) {
  return axios({
    method: "post",
    url: "/deleteInfo",
    data: data
  })
}
  export function provider(data) {
    return axios({
      method: "post",
      url: "/provider",
      data:data
    })
}

export function insertprovider(data) {
  return axios({
    method: "post",
    url: "/insertprovider",
    data:data
  })
}

export function deleteprovider(data) {
  return axios({
    method: "post",
    url: "/deleteprovider",
    data:data
  })
}

export function updateprovider(data) {
  return axios({
    method: "post",
    url: "/updateprovider",
    data:data
  })
}

export function medicineselect(data) {
  return axios({
    method: "post",
    url: "/medicineselect",
    data:data
  })
}

export function medicineinsert(data) {
  return axios({
    method: "post",
    url: "/medicineinsert",
    data:data
  })
}

export function medicinedelete(data) {
  return axios({
    method: "post",
    url: "/medicinedelete",
    data:data
  })
}

export function medicineupadate(data) {
  return axios({
    method: "post",
    url: "/medicineupadate",
    data:data
  })
}

export function insertorder(data) {
  return axios({
    method: "post",
    url: "/insertorder",
    data:data
  })
}


export function selectorder(data) {
  return axios({
    method: "post",
    url: "/selectorder",
    data:data
  })
}

export function perInfo(data) {
  return axios({
    method: "post",
    url: "/perInfo",
    data:data
  })
}
